file-system-model: Avoid use-after free
authorPeter Bloomfield <PeterBloomfield@bellsouth.net>
Sat, 25 Apr 2020 21:26:22 +0000 (17:26 -0400)
committerPeter Bloomfield <PeterBloomfield@bellsouth.net>
Sun, 26 Apr 2020 20:47:23 +0000 (16:47 -0400)
commitd85f02a994d759dc314bf1b972fc6a2de39b47ab
treebea34928b04e7a42dffb29fff9cb27e27e2f4a36
parent7da995da1d1b0d6180db145e34abebbb402d4d8b
file-system-model: Avoid use-after free

This is a possible fix for https://gitlab.gnome.org/GNOME/gtk/-/issues/2657

Use a NULL return from g_file_query_info_finish() to detect cancellation
of the query, and avoid derferencing a stale pointer.
gtk/gtkfilesystemmodel.c